import {get, post, put, del } from "@utils/http";

// 账号登录
export const reqLogin = (data) => post("/user/login", data);

// 账号登出
export const reqLogout = (data) => post("/user/logout", data);

// 图形验证码
export const reqImageCode = () => get("/imageCode/getImageCode");

// 短信验证码
export const getSmsCode = (data) => post("/smsCode/getSmsCode", data);

/* 手机号码是否存在   */
export const reqHasSmsCode = (data) => post("/smsCode/smsScene", data);

/* 十五、更换手机号 */
export const reqChangeMobile = (data) => put("/user/changeMobile", data);

// 五、短信登录
export const reqSmsLogin = (data) => post("/user/smsLogin", data);

/* 修改密码 */
export const reqUpdatePassword = (data) => put("/user/updatePwd", data);

// 新增用户
export const addUser = (data) => post("/user/add", data);

// 用户列表
export const getuserList = (page, limit, data) =>
    post(`/user/pageUser/${page}/${limit}`, data);

// 删除用户
export const delUser = (id) => del(`/user/remove/${id}`);

// 更新用户
export const updateUser = (data) => put(`/user/updateUser`, data);

// 十六、用户分配单位
// export const userAssign = (data) => put(`/user/userAssign`, data);

// 根据id查询用户信息
export const reqUserInfo = (id) => get(`/user/getUserInfo/${id}`);

// 重置密码
export const resetPassword = (data) => put("/user/reset", data);

// 忘记密码
export const forgetPassword = (data) => put("/user/forgot", data);

// 用户停用/启用
export const disableUser = (data) => put("/user/disableUser", data);

// 修改组织用户
export const userAssign = (data) => put("/user/userAssign", data);

// 查询所有权限
export const getPermissionAll = () => get("/permission/permissionAll");

// 新增权限
export const addPermission = (data) => post("/permission/addPermission", data);

// 删除权限
export const delPermission = (id) => del(`/permission/removePermission/${id}`);

// 修改权限信息
export const updatePermission = (id, data) =>
    put(`/permission/updatePermissionById/${id}`, data);

// 根据用户ID查询所有权限
export const getPermissionAllByUserId = (id) =>
    get(`/permission/getPermissionByUserId/${id}`);

// 根据角色ID查询所有权限
export const getPermissionAllByRoleId = (id) =>
    get(`/permission/queryPermissionByRoleId/${id}`);

// 权限树形菜单列表
export const getPermissionTreeAll = () => get("/permission/permissionTreeAll");

// 新增角色
export const addRole = (data) => post("/role/add", data);

// 角色列表
export const getRoleList = (page, limit, data) =>
    post(`/role/pageQuery/${page}/${limit}`, data);

/* 可分配角色列表（不同角色标识获取不同角色列表）  */
export const reqAssignRoleList = (id, data) => post(`/role/role/${id}`, data);

// 查询角色拥有的权限列表
export const getRolePermisison = (id) => get(`/role/roleInfo/${id}`);

// 删除角色
export const delRole = (id) => del(`/role/remove/${id}`);

// 更新角色
export const updateRole = (data) => put("/role/updateRole", data);

// 文件上传
export const reqFileUpload = (data) => post("/file/upload", data);

// 新增租户
export const reqTenantAdd = (data) => post("/tenant/addTenant", data);

// 租户列表
export const reqTenantList = (page, limit, data) =>
    post(`/tenant/pageTenant/${page}/${limit}`, data);

// 删除租户
export const reqTenantDel = (id) => del(`/tenant/removeTenant/${id}`);

// 修改租户
export const reqTenantEdit = (data) => put(`/tenant/updateTenant`, data);

// 组织分页列表||单位
export const reqOrgList = (data) => post(`/org/orgList`, data);

// 新增单位||组织
export const reqOrgAdd = (data) => post("/org/addOrg", data);

// 修改单位||组织
export const reqOrgEdit = (data) => put(`/org/updateOrg`, data);

// 删除单位 ||组织
export const reqOrgDel = (id) => del(`/org/deleteOrg/${id}`);

// 查询下级单位
export const reqOrgLevel = (id) => get(`/org/getOrgLevel/${id}`);

// 单位用户分页
export const reqOrgUserList = (page, limit, data) =>
    post(`/org/orgUserPage/${page}/${limit}`, data);

// 搜索成员
export const reqOrgAdmin = (data) => post("/org/getAdmin", data);

// 邀请成员
export const reqOrgUserAdd = (data) => put("/org/orgAddUser", data);

// 移除成员  单个/批量  （移除园区管理员所有园区关系）
export const reqOrgUserDel = (data) => put("/org/orgRemoveUser", data);

// 单位下所有园区 （用于分配园区）
export const reqParkListByOrgId = (id) => get(`/org/parkListByOrgId/${id}`);

// 查询园区管理员已分配园区
export const reqParkListByOrgUserId = (id) =>
    get(`/park/parkMemberByUserId/${id}`);

// 分配园区
export const reqParkAssign = (data) => post("/park/assign", data);

// 新增园区
export const reqParkAdd = (data) => post("/park/add", data);

// 园区分页
export const reqParkList = (page, limit, data) =>
    post(`/park/page/${page}/${limit}`, data);

// 修改园区
export const reqParkEdit = (data) => put(`/park/update`, data);

// 删除园区
export const reqParkDel = (id) => del(`/park/del/${id}`);

//园区id查询建筑物
export const reqGetSpaceByParkId = (id) => get(`/park/getSpaceByParkId/${id}`);

//四十九、查询下级空间
export const reqSpaceListByPid = (id) => get(`/space/spaceListByPid/${id}`);

// 五十、新增空间
export const reqAdd = (data) => post("/space/add", data);

// 单个新增楼层
export const reqFloorAdd = (data) => post("/space/floorAdd", data);

// 五十一、批量新增空间
export const reqBatchAdd = (data) => post("/space/batchAdd", data);

// 建筑物 ||楼层||空间分页
export const reqSpaceManager = (page, limit, params) =>
    post(`/space/spaceManager/${page}/${limit}`, params);

// 四十七、修改建筑物
export const reqUpdate = (data) => put("/space/update", data);

// 四十八、修改楼层，安装点
export const reqUpdateFloor = (data) => put("/space/updateFloor", data);

// 五十四、删除空间
export const reqDel = (params) => post(`/space/del`, params);

//五十五、空间id获取接警人列表
export const reqGetByTargetId = (id) =>
    get(`/alarmReceiver/getByTargetId/${id}`);

//五十六、空间id获取安装设备
export const reqDeviceBySpaceId = (id) => get(`/device/deviceBySpaceId/${id}`);

// 空间批量设置布撤防
export const reqBatchDefence = (data) => put("/space/batchDefence", data);

// 五十四、空间id获取安装点照片
export const reqGetPicBySpaceId = (id) => get(`/space/getPicBySpaceId/${id}`);

// 六十一、批量删除安装点
export const reqBatchDel = (data) => post("/space/batchDel", data);

// 五十三、批量删除楼层
export const reqFloorBatchDelDel = (data) => put("/space/floorBatchDel", data);

// 新增隔离人
export const reqIsolationPersonAdd = (data) =>
    post("/isolationPerson/add", data);

// 隔离人列表
export const reqIsolationPersonList = (page, limit, params) =>
    post(`/isolationPerson/pageManage/${page}/${limit}`, params);

// 编辑隔离人
export const reqIsolationPersonEdit = (data) =>
    put("/isolationPerson/update", data);

// 删除隔离人
export const reqIsolationPersonDel = (id) => del(`/isolationPerson/del/${id}`);

// 解除隔离人
export const reqIsolationPersonRelieve = (id) =>
    put(`/isolationPerson/relieve/${id}`);

// 空间id查询隔离人
export const reqIsolationPersonBySpaceId = (id) =>
    del(`/isolationPerson/get/${id}`);

// 今日隔离统计
export const reqIsolationPersonToday = (data) =>
    post("/isolationPerson/todayIsolation", data);

// 昨日隔离统计
export const reqIsolationPersonYesterday = (data) =>
    post("/isolationPerson/yesterdayIsolation", data);

// 新增接警人
export const reqAlarmReceiverAdd = (data) => post("/alarmReceiver/add", data);

// 编辑接警人
export const reqAlarmReceiverEdit = (data) =>
    put("/alarmReceiver/update", data);

// 删除接警人
export const reqAlarmReceiverDel = (id) => del(`/alarmReceiver/del/${id}`);

// 五十五、空间批量设置接警人
export const reqAddBatchReceiver = (data) =>
    put(`/spaceReceiver/addBatchReceiver`, data);

// 安装点增加接警人
export const reqAddReceiver = (data) => put(`/spaceReceiver/addReceiver`, data);

// 批量删除接警人
export const reqAlarmReceiverBatchDel = (data) =>
    post(`/alarmReceiver/batchDel`, data);

// 接警人列表
export const reqAlarmReceiverList = (page, limit, params) =>
    post(`/alarmReceiver/pageManager/${page}/${limit}`, params);

// 接警人空间分页
export const reqSpaceReceiverList = (page, limit, params) =>
    post(`/spaceReceiver/page/${page}/${limit}`, params);

// 接警人增加空间
export const reqSpaceReceiverAdd = (params) =>
    post(`/spaceReceiver/add`, params);

// 接警人关联的空间批量删除 五十六、安装点删除接警人
export const reqSpaceReceiverBatchDel = (params) =>
    post(`/spaceReceiver/batchDel`, params);

// 绑定设备
export const reqDeviceBind = (data) => post(`/device/deviceBind`, data);

// 解绑设备
export const reqDeviceUnBind = (data) => put(`/device/deviceUnBind`, data);

// 设备列表 --- 租户下的设备根据角色区分
export const reqDeviceList = (page, limit, params) =>
    post(`/device/deviceManager/${page}/${limit}`, params);

// 产品列表
export const reqProductList = (data) => get("/product/list", data);

// 新增产品
export const reqProductAdd = (data) => post("/product/add", data);

// 修改产品
export const reqProductEdit = (data) => put("/product/updateProduct", data);

// 删除产品
export const reqProductDel = (id) => del(`/product/remove/${id}`);

// 开关门记录
export const reqDoorList = (page, limit, params) =>
    post(`/doorLog/doorLogPage/${page}/${limit}`, params);

// 八十一、红外检测记录
export const reqInfraredDetectionPage = (page, limit, params) =>
    post(`/infraredDetection/infraredDetectionPage/${page}/${limit}`, params);

// 智能终端  --- 运维
export const reqTerminalList = (page, limit, params) =>
    post(`/device/smartTerminal/${page}/${limit}`, params);

// 删除智能终端
export const reqDeviceRemove = (id) => del(`/device/remove/${id}`);

// 新增终端
export const reqTerminalAdd = (data) => post("/device/addDevice", data);

// 批量删除终端列表
export const reqTerminalBatchDel = (params) => post(`/device/batchDel`, params);

// 终端导入
export const reqDeviceImport = (data, params) =>
    post(
        `/device/deviceImport?productId=${params.productId}&protocol=${params.protocol}&classMark=${params.classMark}`,
        data
    );

// 终端导入摄像机
export const reqCameraImport = (data, params) =>
    post(
        `device/cameraImport?productId=${params.productId}&protocol=${params.protocol}&classMark=${params.classMark}`,
        data
    );

// 告警列表
export const reqAlarmList = (page, limit, params) =>
    post(`/alarm/alarmPage/${page}/${limit}`, params);

// 告警处理
export const reqAlarmHandle = (data) => put(`/alarm/alarmHandling`, data);

// 告警批量处理
export const reqAlarmbatchHandling = (data) =>
    put(`/alarm/batchHandling`, data);

// 告警处理记录
export const reqAlarmHandleResult = (id) =>
    get(`/alarm/getAlarmHandling/${id}`);

// 八十八、告警闭环
export const reqClosedLoop = (data) => put(`/alarm/closedLoop`, data);

// 告警批量闭环
export const reqBatchClosedLoop = (data) => put(`/alarm/batchClosedLoop`, data);

// 八十八、告警数量统计
export const reqAlarmCount = (params) => post(`/alarm/alarmCount`, params);

// 每日统计 今日告警 今日新增
export const reqTodayAlarm = (data) =>
    post(`/statistics/todayStatistics`, data);

// 获取系统设置列表
export const reqSystemConfigList = (page, limit, params) =>
    post(`/systemConfig/pageSystemConfig/${page}/${limit}`, params);

// 编辑系统设置
export const reqeSystemConfigEdit = (data) =>
    put("/systemConfig/updateSystemConfig", data);

// 新增系统设置
export const reqSystemConfigAdd = (data) =>
    post("/systemConfig/addSystemConfig", data);

// 删除系统设置
export const reqSystemConfigDel = (id) =>
    del(`/systemConfig/removeSystemConfig/${id}`);

// 查询省级行政单位
export const reqRegion = () => get(`/analysisRegion/analysisRegion`);

// 查询省级下行政单位
export const reqRegionLevel = (pCode) =>
    get(`/analysisRegion/analysisRegionByPCode/${pCode}`);

// 操作日志
export const reqOpeLogList = (page, limit, params) =>
    post(`/operation/pageOperation/${page}/${limit}`, params);

// 九十四、新增行政单位
export const reqAnalysisRegion = (data) => post("/analysisRegion/add", data);

// 九十五、修改行政单位
export const reqAUpdate = (data) => put("/analysisRegion/update", data);

// 九十六、删除行政单位
export const reqAnalysisRegionDel = (id) => del(`/analysisRegion/del/${id}`);

// 厂商列表
export const reqManufacturerList = () => get(`/manufacturer/list`);

// 新增厂商
export const reqManufacturerAdd = (params) => post(`/manufacturer/add`, params);

// 编辑厂商
export const reqManufacturerEdit = (params) =>
    put(`/manufacturer/update`, params);

// 删除厂商
export const reqManufacturerDel = (id) => del(`/manufacturer/remove/${id}`);

// 一百〇三、设备统计
export const reqProduct = (page, limit, params) =>
    post(`/product/statistics/${page}/${limit}`, params);

// 四十一、设置单位管理员
export const reqTurnOver = (params) => post(`/org/turnOver`, params);

// 一百〇九、新增短信包
export const reqMessagePackageAdd = (params) =>
    post(`/messagePackage/add`, params);

// 一百一十、删除短信包
export const reqMessagePackageRemove = (data) =>
    del(`/messagePackage/remove`, data);

// 一百一十一、编辑短信包
export const reqMessagePackageUpdate = (params) =>
    put(`/messagePackage/update`, params);

// 一百一十三、短信包列表
export const reqPageMessagePackage = (page, limit, params) =>
    post(`/messagePackage/pageMessagePackage/${page}/${limit}`, params);

//一百一十二、获取租户短信包
export const reqMessagePackage = (id) =>
    get(`/messagePackage/messagePackage/${id}`);

// 一百一十七、新增语音包
export const reqVoicePackageAdd = (params) => post(`/voicePackage/add`, params);

// 一百一十八、删除语音包
export const reqVoicePackageRemove = (data) =>
    del(`/voicePackage/remove`, data);

// 一百一十九、编辑语音包
export const reqVoicePackageUpdate = (params) =>
    put(`/voicePackage/update`, params);

// 一百二十一、语音包列表
export const reqPageVoicePackage = (page, limit, params) =>
    post(`/voicePackage/pageVoicePackage/${page}/${limit}`, params);

//一百二十、获取租户语音包
export const reqVoicePackage = (id) => get(`/voicePackage/voicePackage/${id}`);

//一百二十二、语音发送记录列表
export const reqPageVoiceLog = (page, limit, data) =>
    post(`/voiceLog/pageVoiceLog/${page}/${limit}`, data);

//短信发送记录列表
export const reqPageSmsLog = (page, limit, data) =>
    post(`/smsLog/pageSmsLog/${page}/${limit}`, data);

// 公众号页面：根据code获取openid
export const reqwxMpOpenId = (data) => post(`/wxMpLinkman/getOpenId`, data);

// 公众号页面：公众号绑定手机号码
export const reqwxMpBindMobile = (data) =>
    post(`/wxMpLinkman/bindMobile`, data);

// 公众号页面：公众号解绑手机号码
export const reqwxMpUnBindMobile = (data) =>
    post(`/wxMpLinkman/unbindMobile`, data);

// 公众号页面：根据openId查询手机号码
export const reqwxMpMobile = (data) =>
    post(`/wxMpLinkman/getMobileByOpenId`, data);

// 四十五、退出团队
export const reqOrgExit = (data) => post(`/org/orgExit`, data);

//一百二十九、红外下发指令
export const reqCommand = (data) => post(`/command/add`, data);

//一百三十、批量下发指令
export const reqBatchCommand = (data) => post(`/command/batchCommand`, data);

//一百三十一、指令分页
export const reqCommandPage = (page, limit, data) =>
    post(`/command/commandPage/${page}/${limit}`, data);

//一百三十二、取消指令
export const reqRemove = (id) => put(`/command/remove/${id}`);

//一百三十四、登录日志
export const reqLoginLog = (page, limit, data) =>
    post(`/loginLog/page/${page}/${limit}`, data);

//一百三十五、操作日志
export const reqOperationLog = (page, limit, data) =>
    post(`/operationLog/page/${page}/${limit}`, data);

//三十六、获取租户信息
export const reqGetById = (id) => get(`/tenant/getById/${id}`);

//门磁告警模式开关/批量开关
export const reqBatchDoorSwitch = (params) =>
    put(`/device/batchDoorSwitch`, params);

//一百四十一、设备类型获取产品
export const reqGetProductByType = (id) =>
    get(`/product/getProductByType/${id}`);

//一百四十二、推送日志分页
export const reqWxMpLog = (page, limit, data) =>
    post(`/wxMpLog/wxMpLog/${page}/${limit}`, data);

//一百四十三、安装点id查询设备组
export const reqGetBySpaceId = (id) => get(`/deviceGroup/getBySpaceId/${id}`);

// 一百四十四、新增设备组
export const reqDeviceGroupAdd = (params) => post(`/deviceGroup/add`, params);

//一百四十五、更新设备组
export const reqDeviceGroupUpdate = (params) =>
    put(`/deviceGroup/update`, params);

// 一百四十六、删除设备组
export const reqDeviceGroupRemove = (id) => del(`/deviceGroup/remove/${id}`);

//获取摄像头账号密码
export const reqCameraget = () => get(`/camera/get`);

// 摄像头账号登录
export const reqCameralogin = (params) => post(`/camera/login`, params);

// 获取摄像头设备详情
export const reqCamerainfo = (params) => post(`/camera/info`, params);

//安装日志
export const reqinstallLog = (page, limit, data) =>
    post(`/installLog/page/${page}/${limit}`, data);

//imei查询最新设备数据
export const reqDeviceDataget = (item) => get(`/deviceData/get/${item}`);

// 设备数据统计
export const reqDevicestatistic = (params) =>
    post(`/deviceData/statistic`, params);

// 新增烟感配置
export const reqSmokeAlarmConfigAdd = (data) =>
    post(`/smokeAlarmConfig/add`, data);

// 删除烟感配置
export const reqSmokeAlarmConfigRemove = (id) =>
    del(`/smokeAlarmConfig/remove/${id}`);

//编辑烟感配置
export const reqSmokeAlarmConfigUpdate = (params) =>
    put(`/smokeAlarmConfig/update`, params);

//获取烟感配置分页
export const reqSmokeAlarmConfigPage = (page, limit, data) =>
    post(`/smokeAlarmConfig/page/${page}/${limit}`, data);

// 批量导入安装点
export const reqSpaceImport = (params) => post(`/space/spaceImport`, params);

//楼层平面图分页
export const reqImagePage = (page, limit, params) =>
    post(`/space/imagePage/${page}/${limit}`, params);

//一百五十七、批量修改平面图
export const reqImageBatchUpdate = (params) =>
    put(`/space/imageBatchUpdate`, params);

//批量删除平面图
export const reqImageBatchDel = (params) => put(`/space/imageBatchDel`, params);

//获取平面图设备标点
export const reqGetMark = (page, limit, params) =>
    post(`/device/getMark/${page}/${limit}`, params);

//修改设备标点
export const reqUpdateMark = (params) => put(`/device/updateMark`, params);

// 清除平面图设备标点
export const reqDeleteMark = (floorld) => del(`/device/deleteMark/${floorld}`);

//一百六十二、楼层id查询平面图
export const reqFloorById = (id) => get(`/space/floorById/${id}`);

//产品型号分页
export const reqProductModelPage = (page, limit, params) =>
    post(`/productModel/page/${page}/${limit}`, params);

// 新增产品型号
export const reqProductModelAdd = (data) => post(`/productModel/add`, data);

// 删除产品型号
export const reqProductModelRemove = (id) => del(`/productModel/remove/${id}`);

//编辑产品型号
export const reqProductModelUpdate = (params) =>
    put(`/productModel/update`, params);

// 新增维保组
export const reqMaintenanceAdd = (data) => post(`/maintenance/add`, data);

// 删除维保组
export const reqMaintenanceRemove = (id) => del(`/maintenance/remove/${id}`);

//编辑维保组
export const reqMaintenanceUpdate = (params) =>
    put(`/maintenance/update`, params);

// 维保组列表分页
export const reqMaintenancePage = (page, limit, params) =>
    post(`/maintenance/page/${page}/${limit}`, params);

// 查询维保组技工
export const reqMaintenance = (id) => get(`/maintenance/get/${id}`);

// 任务列表分页
export const reqTaskPage = (page, limit, params) =>
    post(`/task/page/${page}/${limit}`, params);

// 删除任务
export const reqTaskRemove = (id) => del(`/task/remove/${id}`);

// 告警任务导出
export const reqAlarmTask = (data) => post(`/alarm/task`, data);

// 查询接警人接警时段
export const reqGetByReceiverId = (id) =>
    get(`/receiverTime/getByReceiverId/${id}`);

//修改/批量修改接警时段
export const reqReceiverTimeUpdate = (params) =>
    put(`/receiverTime/update`, params);

// 导入接警人
export const reqReceiverImport = (data) =>
    post(`/alarmReceiver/receiverImport`, data);

// 安装点查询摄像头
export const reqGetCamera = (spaceId) => get(`/device/getCamera/${spaceId}`);

// 设备查询撤防时段
export const reqGetByDeviceId = (deviceId) =>
    get(`/defence/getByDeviceId/${deviceId}`);

//修改设备撤防时段
export const reqDefenceUpdate = (params) => put(`/defence/update`, params);

// 新增订阅
export const reqSubscribeadd = (data) => post(`/subscribe/add`, data);

//修改订阅
export const reqSubscribeUpdate = (params) => put(`/subscribe/update`, params);

// 删除订阅
export const reqSubscribeRemove = (id) => del(`/subscribe/remove/${id}`);

// 订阅配置分页
export const reqSubscribePage = (page, limit, params) =>
    post(`/subscribe/page/${page}/${limit}`, params);

// 批量新增订阅
export const reqSubscribebatchAdd = (data) => post(`/subscribe/batchAdd`, data);

// 手动推送
export const reqSubscribepush = (id) => get(`/subscribe/push/${id}`);

// 订阅推送日志
export const reqSubscribePushLogPage = (page, limit, params) =>
    post(`/subscribePushLog/page/${page}/${limit}`, params);

// 设备安装信息导出 设备筛选有几个字段 ，这个接口就要加几个字段
export const reqDeviceTask = (data) => post(`/device/task`, data);

// 隐患列表
export const reqHiddenDangerPage = (page, limit, params) =>
    post(`/hiddenDanger/page/${page}/${limit}`, params);

// 获取隐患信息
export const reqHiddenDanger = (id) => get(`/hiddenDanger/get/${id}`);

//处理隐患
export const reqHiddenDangerUpdate = (params) =>
    put(`/hiddenDanger/update`, params);

// 工单列表
export const reqWorkOrderPage = (page, limit, params) =>
    post(`/workOrder/page/${page}/${limit}`, params);

// 工单id获取工单处理记录
export const reqWorkOrderLog = (id) => get(`/workOrder/workOrderLog/${id}`);

// 隐患id获取工单信息及处理记录
export const reqByHiddenDangerId = (hiddenDangerId) =>
    get(`/workOrder/byHiddenDangerId/${hiddenDangerId}`);

//处理工单
export const reqWorkOrderUpdate = (params) => put(`/workOrder/update`, params);

//批量修改有效期限
export const reqBatchInDate = (params) => put(`/device/batchInDate`, params);

// imei查询告警视频列表
export const reqPlayList = (page, limit, imei) =>
    get(`/camera/playList/${page}/${limit}/${imei}`);

// 告警id查询告警视频列表
export const reqAlarmPlay = (alarmId) => get(`/camera/alarmPlay/${alarmId}`);

// 用户解绑设备
export const reqDeviceUserunBind = (id) => put(`/deviceUser/unBind/${id}`);

// 用户绑定设备
export const reqDeviceUserbind = (params) => post(`/deviceUser/bind`, params);

// 设备查询设备用户
export const reqDeviceUsergetByImei = (imei) =>
    get(`/deviceUser/getByImei/${imei}`);

// 预新增业主账号
export const reqAddNormalUser = (params) => post(`/user/addNormalUser`, params);

// 查询业主账号
export const reqGetNormalUser = (params) => post(`/user/getNormalUser`, params);

// 建筑物信息修改导出
export const reqSpaceTask = (params) => post(`/space/task`, params);

// 建筑物信息修改导入
export const reqSpaceTaskImport = (params) => post(`/space/taskImport`, params);

//批量修改设备安装备注
export const reqBatchUpRemark = (params) =>
    put(`/device/batchUpRemark`, params);

// 新增指令服务
export const reqCommandServiceadd = (data) => post(`/commandService/add`, data);

// 删除指令服务
export const reqCommandServiceRemove = (id) =>
    del(`/commandService/remove/${id}`);

//修改指令服务
export const reqCommandServiceUpdate = (params) =>
    put(`/commandService/update`, params);

// 指令服务分页
export const reqCommandServicePage = (page, limit, params) =>
    post(`/commandService/page/${page}/${limit}`, params);

// 新增字典
export const reqDictAdd = (data) => post(`dict/add`, data);

// 删除字典
export const reqDictRemove = (id) => del(`/dict/remove/${id}`);

//修改字典
export const reqDictUpdate = (params) => put(`/dict/update`, params);

// 字典分页
export const reqDictPage = (page, limit, params) =>
    post(`/dict/page/${page}/${limit}`, params);

// 新增字典数据
export const reqDictDataAdd = (data) => post(`dictData/add`, data);

// 删除字典数据
export const reqDictDataRemove = (id) => del(`/dictData/remove/${id}`);

//修改字典数据
export const reqDictDataUpdate = (params) => put(`/dictData/update`, params);

// 字典数据分页
export const reqDictDataPage = (page, limit, params) =>
    post(`/dictData/page/${page}/${limit}`, params);

// 根据字典类型查询字典数据信息
export const getDicts = (dictType) =>
    get(`/dictData/getByType/${dictType}`);

// 统计

// 告警统计
export const reqAlarmStatistics = (page, limit, params) =>
    post(`/alarm/alarmStatistics/${page}/${limit}`, params);

// 告警记录列表
export const reqAlarmLog = (page, limit, params) =>
    post(`/alarm/alarmLog/${page}/${limit}`, params);

// 告警统计导出
export const reqAlarmtatisticsTask = (data) =>
    post(`/alarm/alarmStatisticsTask`, data);

// 隐患统计
export const reqHiddenDangerStatistics = (page, limit, params) =>
    post(`/hiddenDanger/hiddenDangerStatistics/${page}/${limit}`, params);

// 隐患记录列表
export const reqHiddenDangerLog = (page, limit, params) =>
    post(`/hiddenDanger/hiddenDangerLog/${page}/${limit}`, params);

// 隐患统计导出
export const reqHiddenDangerTask = (data) =>
    post(`/hiddenDanger/hiddenDangerTask`, data);

// 智能终端导出
export const reqTerminalTask = (data) => post(`/device/terminalTask`, data);

// 物模型日志分页
export const reqThingModelLog = (page, limit, params) =>
    post(`/thingModel/thingModelLog/${page}/${limit}`, params);

// 查询上级组织信息
export const reqOrgSuperLevelInfo = (id) => get(`/org/getOrgById/${id}`);

// 获取电气综合测控装置详情
export const reqDeviceFindInfo = (id) =>
    post(`/device/findInfoByDeviceId/${id}`);

// 联控设备绑定
export const reqDeviceBindByFather = (params) =>
    post(`/device/deviceBindByFather`, params);

// 联控设备解绑
export const reqDeviceUnBindByFather = (params) =>
    put(`/device/deviceUnBindJointControl`, params);

// 联控设备删除
export const reqDeviceRemoveByFather = (id) =>
    del(`/device/removeJointControl/${id}`);

// 联控设备指令下发
export const reqAddSoundLightVoiceAlarm = (params) =>
    post(`/command/addSoundLightVoiceAlarm`, params);

// 查询设备是否已经入库
export const reqDeviceByImei = (id) => get(`/device/deviceByImei?imei=${id}`);

// 探测器 列表
export const reqDetectorPage = (page, limit, params) =>
    post(`/detector/page/${page}/${limit}`, params);

// 探测器 新增
export const reqDetectorAdd = (params) => post(`/detector/add`, params);

// 探测器 修改
export const reqDetectorUpdate = (params) =>
    put(`/detector/updateById`, params);

// 探测器 删除
export const reqDetectorDelete = (id) => del(`/detector/delete/${id}`);

// 探测器 统计
export const reqDetectorStatistics = (params) =>
    post(`/detector/statistics`, params);

// 探测器 指令列表
export const reqKeyCommandList = (params) => post(`/keyCommand/list`, params);

// 探测器 指令新增
export const reqKeyCommandAdd = (params) => post(`/keyCommand/add`, params);

// 探测器 指令编辑
export const reqKeyCommandEdit = (params) =>
    put(`/keyCommand/updateById`, params);

// 探测器 指令删除
export const reqKeyCommandDelete = (id) => del(`/keyCommand/deleteById/${id}`);

// 探测器 指令下发
export const reqKeyCommandSend = (params) => post(`/keyCommand/send`, params);

// 探测器 型号列表
export const reqDetectorProductList = (params) =>
    post(`/detectorProduct/findList`, params);

// 探测器查询主机详情
export const reqDetector = (deviceCode) =>
    post(`/detector/detail/${deviceCode}`);

// 探测器查询主机状态
export const reqDetectorDxtend = (params) => post(`/extend/detail`, params);

// 用传 查询主机密码
export const reqUtdQueryPassword = (params) => post(`/extend/queryPassword`, params);

// 用传 设置主机密码
export const reqUtdSetPassword = (params) => post(`/extend/setPassword`, params);

// 用传 设置主机号
export const reqUtdSetHostNumber = (params) => post(`/extend/setHostNumber`, params);

// 探测器 主动注册
export const reqDetectorRegister = (params) =>
    put(`/device/deviceRegister`, params);

// 探测器 导入
export const reqDetectorImport = (params) => post(`/detector/import`, params);

// 探测器 导出
export const reqDetectorExport = (params) => post(`/detector/export`, params);

// 联控设备指令重发
export const reqCommandResend = (id) => put(`/command/commandResend/${id}`);

// 消控室 列表
export const reqFireControlRoomPage = (page, limit, params) =>
    post(`/fireControlRoom/page/${page}/${limit}`, params);

// 消控室 新增
export const reqFireControlRoomAdd = (params) =>
    post(`/fireControlRoom/add`, params);

// 消控室 编辑
export const reqFireControlRoomEdit = (params) =>
    put(`/fireControlRoom/update`, params);

// 消控室 批量编辑
export const reqFireControlRoomBatchEdit = (params) =>
    put(`/fireControlRoom/batch/update`, params);

// 消控室 删除
export const reqFireControlRoomDel = (id) =>
    del(`/fireControlRoom/delete/${id}`);

// 消控室 批量删除
export const reqFireControlRoomBatchDel = (params) =>
    post(`/fireControlRoom/batch/delete`, params);

// 消控室 详情
export const reqFireControlRoomDetail = (id) =>
    post(`/fireControlRoom/get/${id}`);

// 消控室 获取设备列表
export const reqDevicePage = (page, limit, params) =>
    post(`/device/deviceList/${page}/${limit}`, params);

// 消控室 查询当前组织机构下用户
export const reqOrgUserPage = (page, limit, params) =>
    post(`/org/orgPage/${page}/${limit}`, params);

// 根据imei获取消控室详情
export const reqGetDetails = (imei) =>
    post(`/fireControlRoom/getDetails/${imei}`);

// 消控室 查询当前组织机构下建筑物
export const reqOrgSpacePage = (page, limit, params) =>
    post(`/space/spacePage/${page}/${limit}`, params);

// 组织列表
export const reqAgencyList = (data) => post(`/agency/list`, data);

// 修改组织
export const reqAgencyEdit = (params) => put(`/agency/update`, params);

// 新增组织
export const reqAgencyAdd = (params) => post(`/agency/add`, params);

// 删除组织
export const reqAgencyRoomDel = (id) => del(`/agency/delete/${id}`);

// 账号注销
export const reqCancel = () => del(`/user/cancel`);

// 查询用户单位
export const reqOrgByUserId = (userId) => get(`/user/orgByUserId/${userId}`);

// 消防设施管理

// 消防设施管理列表
export const reqFireFacilityPage = (page, limit, params) =>
    post(`/fireFacility/page/${page}/${limit}`, params);

// 修改消防设施
export const reqFireFacilityEdit = (fireFacilityId, params) =>
    put(`/fireFacility/${fireFacilityId}`, params);

// 新增消防设施
export const reqFireFacilityAdd = (params) => post(`/fireFacility/add`, params);

// 删除消防设施
export const reqFireFacilityDel = (fireFacilityId) =>
    del(`/fireFacility/${fireFacilityId}`);

// 根据Id查询消防设施信息
export const reqFireFacilityById = (fireFacilityId) =>
    post(`/fireFacility/${fireFacilityId}`);

// 批量删除消防设施
export const reqFireFacilityBatchDel = (fireFacilityIds) =>
    post(`/fireFacility/delete/batch`, fireFacilityIds);

// 分页查询消防设施分类
export const reqCategoryFireFacilityPage = (page, limit, params) =>
    post(`/category/facility/${page}/${limit}`, params);

// 查询所有消防设施分类
export const reqCategoryFireFacilityList = (params) =>
    post(`/category/facility/list`, params);

// 分页查询消防系统
export const reqFireOsPage = (page, limit, params) =>
    post(`/fireOs/page/${page}/${limit}`, params);

// 修改消防系统
export const reqFireOsEdit = (fireId, params) =>
    put(`/fireOs/${fireId}`, params);

// 新增消防系统
export const reqFireOsAdd = (params) => post(`/fireOs/add`, params);

// 查询所有消防系统
export const reqFireOsList = (params) => post(`/fireOs/list`, params);

// 删除消防系统
export const reqFireOsDel = (fireId) => del(`/fireOs/${fireId}`);

// 根据Id查询消防系统信息
export const reqFireOsById = (fireId) => get(`/fireOs/${fireId}`);

// 导出消防设施
export const reqFireFacilityExport = (page, limit, params) =>
    post(`/fireFacility/task/${page}/${limit}`, params);

// 查询组织机构自定义名称和logo
export const reqOrgCustomById = (id) => get(`/org/custom/${id}`);

// 反馈列表  消控室大屏
export const reqFeedbackPage = (page, limit, params) =>
    post(`/feedback/page/${page}/${limit}`, params);

// 查询探测器详情
export const reqDetectorDetail = (params) =>
    post(`/detector/detail`, params);

// 获取消控室中的设备
export const reqPageRommDevice = (page, limit, params) =>
    post(`/fireControlRoom/pageRommDevice/${page}/${limit}`, params);

// 绑定摄像头
export const reqBindingCamera = (params) =>
    put(`/detector/bindingCamera`, params);

// 解绑摄像头
export const reqUnbindingCamera = (id) =>
    put(`/detector/unbindingCamera/${id}`);

// 根据告警id查询工单详情
export const reqByAlarmId = (alarmId) =>
    get(`/workOrder/byAlarmId/${alarmId}`);

// 根据工单Id查询工单详情
export const reqByWorkOrderId = (workOrderId) =>
    get(`/workOrder/byWorkOrderId/${workOrderId}`);

// 根据设备imei导出历史数据 
export const reqHistoryExportTask = (params) => post(`/deviceOriginalData/historyExportTask`, params);

// 分页查询设备历史数据
export const reqDeviceOriginalData = (page, limit, params) =>
    post(`/deviceOriginalData/page/${page}/${limit}`, params);